<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <nav-menu v-show="$route.path != '/live'"></nav-menu>

    <!-- 对应的组件内容渲染到router-view中 -->
    <div id="view">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
import NavMenu from './components/NavMenu.vue'
import { Storage } from "./storage";

export default {
  name: 'App',
  components: {
    NavMenu
  },
  data() {
    return {
      
    }
  },
  methods: {

  },
  mounted() {
    // let isLogin = Storage.get("isLogin")
    // if(isLogin != undefined && isLogin == true) {
    //   this.$router.push({name:"Course"})
    // }
  }
}
</script>

<style>
body {
  padding: 0%;
  margin: 0%;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

#view {
  margin-top: 2%;
  height: auto;
}
</style>
